Cn
A concrete implementation of the Connection
interface that manages a single database connection while ensuring thread-safety and proper lifecycle handling.
This class wraps an R2dbcConnection
and provides methods for executing queries, managing transactions, and fetching results. It uses a mutex to synchronize operations and ensures the connection is in the correct state before performing any operations. It tracks the connection's status internally and supports releasing resources appropriately.